import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '客户名称',
    align: "center",
    dataIndex: 'feeder'
  },
   {
    title: '客户标准名称',
    align:"center",
    dataIndex: 'customStandardName'
   },
   {
    title: '客户标准',
    align:"center",
    dataIndex: 'pdf',
   },
  {
    title: '排序号',
    align:"center",
    dataIndex: 'sequence',
    sorter: true
  },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '客户名称',
    field: 'feeder',
    component: 'Input',
  },
  {
    label: '客户标准名称',
    field: 'customStandardName',
    component: 'Input',
  },
  {
    label: '客户标准',
    field: 'pdf',
    component: 'JUpload',
    componentProps:{
     },
  },
  {
    label: '排序号',
    field: 'sequence',
    component: 'Input',
  },
	// TODO 主键隐藏字段，目前写死为ID
	{
	  label: '',
	  field: 'id',
	  component: 'Input',
	  show: false
	},
];

// 高级查询数据
export const superQuerySchema = {
  feeder: {title: '车间号',order: 0,view: 'text', type: 'string',},
  customStandardName: {title: '客户标准名称',order: 1,view: 'text', type: 'string',},
  pdf: {title: '客户标准',order: 2,view: 'file', type: 'string',},
  sequence: {title: '排序号',order: 3,view: 'text', type: 'Integer',},

};

/**
* 流程表单调用这个方法获取formSchema
* @param param
*/
export function getBpmFormSchema(_formData): FormSchema[]{
  // 默认和原始表单保持一致 如果流程中配置了权限数据，这里需要单独处理formSchema
  return formSchema;
}
